/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-4-20 下午5:09 Created by lyyang
 */
package com.xunton.bss.weixin.api;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 微信消息
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-4-20 下午5:09
 */
public  class Response implements Serializable
{
    private Object data;

    @JsonProperty ("errcode")
    private int errorCode;

    @JsonProperty ("errmsg")
    private String errorMsg;



    public int getErrorCode()
    {
        return errorCode;
    }

    public void setErrorCode(int errorCode)
    {
        this.errorCode = errorCode;
    }

    public String getErrorMsg()
    {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }

    public Object getData()
    {
        return data;
    }

    public void setData(Object data)
    {
        this.data = data;
    }

    public boolean isOK()
    {
        return errorCode == 0;
    }
}
